/**
 * 
 */
package com.ctg.payroll2.service.cusadmin.impl;

import java.util.HashMap;
import java.util.Map;

import com.ctg.payroll2.dao.cusadmin.PbAccountDAO;
import com.ctg.payroll2.service.cusadmin.PbAccountService;
import com.ctg.platform.util.Page;
/**
 * @author 郑致力
 *
 */
public class PbAccountServiceImpl implements PbAccountService {
	private PbAccountDAO pbAccountDAO;
		
	public PbAccountDAO getPbAccountDAO() {
		return pbAccountDAO;
	}

	public void setPbAccountDAO(PbAccountDAO pbAccountDAO) {
		this.pbAccountDAO = pbAccountDAO;
	}



	public Page queryWithPaginationByAdmin(String user_code, String company_chinese_code, Boolean isSystemAdmin, Boolean is_valid, Integer data_come, int start, int limit) {
		Map<String, Object> parameters = new HashMap<String, Object>();
		if (user_code != null) {
			parameters.put("user_code", user_code);
		}
		if (company_chinese_code != null) {
			parameters.put("company_chinese_code", company_chinese_code);
		}
		if (data_come != null) {
			parameters.put("data_come", data_come);
		}
		if (isSystemAdmin != null) {
			parameters.put("isSystemAdmin", isSystemAdmin);
		}
		if (is_valid != null) {
			parameters.put("is_valid", is_valid);
		}
		return pbAccountDAO.pagedQuery(parameters, start, limit);
	}
}
